# Clean workspace each chapter
rm(list = ls(all = TRUE))
options(scipen = 8, width=65)
# Any package that is required by the script below is given here:
inst_pkgs = load_pkgs = c("ggplot2","astsa","ggfortify","zoo","gmwm","gridExtra")
inst_pkgs = inst_pkgs[!(inst_pkgs %in% installed.packages()[,"Package"])]
if(length(inst_pkgs)) install.packages(inst_pkgs)
# Dynamically load packages
pkgs_loaded = lapply(load_pkgs, require, character.only=T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.